
<#include "/common/head.html"/>

 <div class="easyui-panel addPage" data-options="fit:true,border:false,novalidate:true">
    <form class="easyui-form" id="ff" method="post" data-options="novalidate:true">
        <table class="table1">
        	
             <tr>           		
           		<th><span>入库单名称：</span></th>
               	<td colspan="4">
               		<input class="easyui-textbox" type="text" name="in_name" value="${in_name!''}" data-options="" style="width:70%;"></input>
           		</td>
           		
           		<!-- 
           		<th><span>批次：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="in_batch" value="" data-options=""></input>
           		</td> -->
            </tr>
            <tr>
           		<th><span>入库单编号：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="in_no" value="" data-options="required:true"></input>
           		</td>
           		
           		<th><span>入库单条码：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="in_barcode" value="" data-options=""></input>
           		</td>
           	</tr>
           	<tr>
           		<th><span>入库类型：</span></th>
               	<td>
	            	<input class="easyui-combobox" id="in_type" name="in_type" value="" data-options="
	            				valueField: 'id',
   								textField: 'text',
	            				data: [
	            					{id:'', text:''}<#list dictDatain_type.keySet() as key>,{id:'${key}', text:'${dictDatain_type.get(key)}'}</#list>
	            				]
	            				
	            	" />        	
           		</td>
           		
           		<!-- <th><span>订单编号：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="order_no" value="" data-options=""></input>
           		</td> -->
           		
           		<th><span>所属仓库：</span></th>
               	<td>
	            	<input class="easyui-combobox" id="storage_no" name="storage_no" value="" data-options="required:true,
	            				valueField: 'id',
   								textField: 'text',
	            				data: [
	            					{id:'', text:''}<#list dictDatastorage_no.keySet() as key>,{id:'${key}', text:'${dictDatastorage_no.get(key)}'}</#list>
	            				]
	            				
	            	" />        	
           		</td>
            </tr>
            <tr><!-- 
           		<th><span>供应商编号：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="sup_num" value="" data-options=""></input>
           		</td> -->
           		
           		<th><span>填单人员：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="create_user" value="${session['sysUser'].user_name}" data-options="readonly:true"></input>
           		</td>
           		<th><span>填单时间：</span></th>
               	<td>
               		<input class="easyui-datetimebox" type="text" name="in_time" value="" data-options="required:true"></input>
           		</td>
           		
            </tr>
            <!--
            <tr> 
           		<th><span>审核人员：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="audit_user" value="" data-options=""></input>
           		</td>
           		
           		<th><span>审核时间：</span></th>
               	<td> 
               		<input class="easyui-datebox" type="text" name="audit_time" value="" data-options=""></input>
           		</td>
           		
            </tr>
            <tr>
           		<th><span>打印人员：</span></th>
               	<td>
               		<input class="easyui-textbox" type="text" name="print_user" value="" data-options=""></input>
           		</td>
           		
           		<th><span>打印时间：</span></th>
               	<td>
               		<input class="easyui-datetimebox" type="text" name="print_time" value="" data-options=""></input>
           		</td>
            </tr> -->
             <tr>
	             <th><span>批次：</span></th>
	               	<td>
	               		<input class="easyui-textbox" type="text" name="in_batch" value="" data-options=""></input>
	           		</td>	
	            <th><span>单据类型：</span></th>
               		<td>
	            	<input class="easyui-combobox" id="operate_type" name="operate_type" value="1" data-options="
	            				valueField: 'id',
   								textField: 'text',
	            				data: [
	            					{id:'', text:''}<#list dictDataoperate_type.keySet() as key>,{id:'${key}', text:'${dictDataoperate_type.get(key)}'}</#list>
	            				],
	            				readonly:true
	            				
	            	" />        	
           		</td>
            </tr>      
        </table>
    </form>
</div>
<script>
top.window.subPage.save = save;
function save() {
	if($("#ff").form('enableValidation').form('validate')) {
		$.post("add", getParam(), function(data) {
			top.window.closeWindow();
			top.window.subPage.loadCurrDatagrid();
		});
	}
}
function getParam() {
	var param = {
	     
       	    "model.in_type": $(":input[name='in_type']").val(), 
       	    "model.order_no": $(":input[name='order_no']").val(), 
       	    "model.storage_no": $(":input[name='storage_no']").val(), 
       	    "model.sup_num": $(":input[name='sup_num']").val(), 
       	    "model.in_time": $(":input[name='in_time']").val(), 
       	    "model.create_user": $(":input[name='create_user']").val(), 
       	    "model.audit_user": $(":input[name='audit_user']").val(), 
       	    "model.audit_time": $(":input[name='audit_time']").val(), 
       	    "model.print_user": $(":input[name='print_user']").val(), 
       	    "model.print_time": $(":input[name='print_time']").val(), 
       	    "model.operate_type": $(":input[name='operate_type']").val(), 
       	    "model.in_no": $(":input[name='in_no']").val(), 
       	    "model.in_barcode": $(":input[name='in_barcode']").val(), 
       	    "model.in_name": $(":input[name='in_name']").val(), 
       	    "model.in_batch": $(":input[name='in_batch']").val(), 
	}
	for(key in param) {
		if(!param[key]) {
			delete param[key];
		}
	}
	return param;
}

//扩展js
</script>
<#include "/common/foot.html"/>
